"""
配置管理模块
"""
from pydantic_settings import BaseSettings


class Settings(BaseSettings):
    """应用配置"""
    
    # JWT配置
    JWT_ALGORITHM: str = "RS256"
    JWT_EXPIRE_MINUTES: int = 30
    
    # CORS配置
    CORS_ORIGINS: str = "http://localhost:5173,http://localhost:3000"
    
    # 服务器配置
    HOST: str = "0.0.0.0"
    PORT: int = 10001
    
    # API前缀
    API_V1_PREFIX: str = "/api/v1/drivionExe"
    
    class Config:
        env_file = ".env"
        case_sensitive = True


settings = Settings()
